<html>
<%@ page import="java.sql.*" %>
<center><img src="images/2.jpeg" border=0 width=363 height=228><img src="images/15.jpeg" border=0 width=263 height=228> <img src="images/7.jpeg" border=0 width=263 height=228>
<body bgcolor="#fdfec5" >
<%
try
{
	String d=session.getAttribute("pin").toString();
int accno=Integer.parseInt(d);
int checkno=Integer.parseInt(request.getParameter("checkno"));
String issue=request.getParameter("issue");
String date=request.getParameter("date");
String type=request.getParameter("type");
  Class.forName("oracle.jdbc.driver.OracleDriver");
   Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","bank","bank");
  Statement st=con.createStatement();
 int i=st.executeUpdate("insert into checkdetails values("+accno+","+checkno+",'"+issue+"','"+date+"','"+type+"')");
 if(i>0)
 {
   System.out.println("inserted");%>

<div style="font-size:20">   Sucessfully Inserted
<br><a href="Index.html"  style="font-size:20">Home</a></font>
<br><br>
</div>

   <%
 }
}
catch(Exception e){
out.println(e);}
%>
</body>
</html>